package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.UserTherapistRelationMapper;
import com.ruoyi.system.domain.UserTherapistRelation;
import com.ruoyi.system.service.IUserTherapistRelationService;

/**
 * 用户陪诊关联Service业务层处理
 *
 * @author ruoyi
 * @date 2025-06-09
 */
@Service
public class UserTherapistRelationServiceImpl implements IUserTherapistRelationService
{
    @Autowired
    private UserTherapistRelationMapper userTherapistRelationMapper;

    /**
     * 查询用户陪诊关联
     *
     * @param id 用户陪诊关联主键
     * @return 用户陪诊关联
     */


    @Override
    public UserTherapistRelation selectUserTherapistRelationById(Long id) {
        return userTherapistRelationMapper.selectUserTherapistRelationById(id);
    }

    /**
     * 查询用户陪诊关联列表
     *
     * @param userTherapistRelation 用户陪诊关联
     * @return 用户陪诊关联
     */
    @Override
    public List<UserTherapistRelation> selectUserTherapistRelationList(UserTherapistRelation userTherapistRelation)
    {
        return userTherapistRelationMapper.selectUserTherapistRelationList(userTherapistRelation);
    }

    /**
     * 新增用户陪诊关联
     *
     * @param userTherapistRelation 用户陪诊关联
     * @return 结果
     */
    @Override
    public int insertUserTherapistRelation(UserTherapistRelation userTherapistRelation)
    {
        return userTherapistRelationMapper.insertUserTherapistRelation(userTherapistRelation);
    }

    /**
     * 修改用户陪诊关联
     *
     * @param userTherapistRelation 用户陪诊关联
     * @return 结果
     */
    @Override
    public int updateUserTherapistRelation(UserTherapistRelation userTherapistRelation)
    {
        return userTherapistRelationMapper.updateUserTherapistRelation(userTherapistRelation);
    }

    /**
     * 批量删除用户陪诊关联
     *
     * @param ids 需要删除的用户陪诊关联主键
     * @return 结果
     */
    @Override
    public int deleteUserTherapistRelationByIds(Long[] ids)
    {
        return userTherapistRelationMapper.deleteUserTherapistRelationByIds(ids);
    }

    /**
     * 删除用户陪诊关联信息
     *
     * @param id 用户陪诊关联主键
     * @return 结果
     */
    @Override
    public int deleteUserTherapistRelationById(Long id)
    {
        return userTherapistRelationMapper.deleteUserTherapistRelationById(id);
    }
}
